package com.joolun.mall.mapper;

import java.util.List;

import com.joolun.mall.entity.TbWork;


/**
 * workMapper接口
 * 
 * @author www.joolun.com
 * @date 2023-02-17
 */
public interface TbWorkMapper 
{
    /**
     * 查询work
     * 
     * @param id workID
     * @return work
     */
    public TbWork selectTbWorkById(Long id);

    /**
     * 查询work列表
     * 
     * @param tbWork work
     * @return work集合
     */
    public List<TbWork> selectTbWorkList(TbWork tbWork);

    /**
     * 新增work
     * 
     * @param tbWork work
     * @return 结果
     */
    public int insertTbWork(TbWork tbWork);

    /**
     * 修改work
     * 
     * @param tbWork work
     * @return 结果
     */
    public int updateTbWork(TbWork tbWork);

    /**
     * 删除work
     * 
     * @param id workID
     * @return 结果
     */
    public int deleteTbWorkById(Long id);

    /**
     * 批量删除work
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTbWorkByIds(Long[] ids);
}
